	
/****** Object:  Stored Procedure DeliveredOrdersUpdate    Script Date: Thursday, August 10, 2006 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spDeliveredOrdersUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [spDeliveredOrdersUpdate]
GO

	
	

	
/******************************************************************************
**		File: 
**		Name: spDeliveredOrdersUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 8/10/2006 3:27:02 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE spDeliveredOrdersUpdate
	@DeliveredOrderID int, 
	@OfficeID int, 
	@SupplierCode varchar(3), 
	@OrderNo varchar(3), 
	@YY char(2), 
	@OrderDate datetime, 
	@QtyIssued int, 
	@DateIssued datetime, 
	@ProductCode varchar(5), 
	@BulkOrderID int, 
	@CustomerName varchar(50), 
	@POID int 
AS

UPDATE [DeliveredOrders] SET
	[OfficeID] = @OfficeID,
	[SupplierCode] = @SupplierCode,
	[OrderNo] = @OrderNo,
	[YY] = @YY,
	[OrderDate] = @OrderDate,
	[QtyIssued] = @QtyIssued,
	[DateIssued] = @DateIssued,
	[ProductCode] = @ProductCode,
	[BulkOrderID] = @BulkOrderID,
	[CustomerName] = @CustomerName,
	[POID] = @POID
WHERE
	[DeliveredOrderID] = @DeliveredOrderID

GO
